package com.foreknow.elm.service.impl;

import com.foreknow.elm.dao.OrderDetailetDao;
import com.foreknow.elm.dao.impl.OrderDetailetIDaompl;
import com.foreknow.elm.po.OrderDetailet;
import com.foreknow.elm.service.OrderDetailetService;

import java.sql.SQLException;

public class OrderDetailetServiceImpl implements OrderDetailetService {
    @Override
    public int save(OrderDetailet orderdetailet) {
        OrderDetailetDao orderDetailetDao = new OrderDetailetIDaompl();
        int a = 0;
        try {
            a = orderDetailetDao.save(orderdetailet);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return a;
    }
}
